package com.mrjy.queries.bo;

import java.util.Map;

import com.mrjy.common.dto.MyMessagesDto;
import com.mrjy.common.entity.QuestionGoodInfo;
import com.mrjy.common.entity.UserInfo;
import com.mrjy.queries.dto.QuestionGoodInfoDTO;

public interface IQuestionGoodInfoBo {
	
	/**
	 * 点赞
	 * @param goodInfo
	 * @param userInfo
	 * @return
	 */
	String addGood(QuestionGoodInfo goodInfo,UserInfo userInfo);
	/**
	 * 点赞
	 * @param questionGoodInfo
	 * @param map
	 * @return
	 */
	Object txInsertGood(QuestionGoodInfo questionGoodInfo,
			Map<String, Object> map);
	
	
	Object quesyExist(QuestionGoodInfo info, Map<String, Object> map);
	
	public Object txUpdateReadFlagToReaded(Integer id);
	Object queryMyGoodPageByCommentedId(MyMessagesDto dto);
	Object queryMyPraise(QuestionGoodInfoDTO dto);
}
